import request from '@/utils/request'

export const getOrders = (params) => {
  return request({
    method: 'get',
    url: '/private/v1/orders',
    params,
  })
}

// 获取订单数据
export const getOrdersDetail = (id) => {
  return request({
    method: 'get',
    url: '/private/v1/orders/' + id,
  })
}

// 提交订单数据
export const editOrderDetail = (id, data) => {
  return request({
    method: 'put',
    url: '/private/v1/orders/' + id,
    data,
  })
}
// 查看物流信息
export const getExpressInfo = (id) => {
  return request({
    method: 'get',
    url: '/private/v1/kuaidi/' + id,
  })
}
